package com.changtest.demotest.liainxi;

public class User {
    private static Pet pet=new Cat();
    private static Pet pet1=new Dog();
    public static void main(String[] args) {
        String miao = pet.jiao("小猫");
        System.out.println(miao);
        String 小狗 = pet1.jiao("小狗");
        System.out.println(小狗);
    }
}
